<?php
include_once 'BaseDAO.php';
//include_once '../util/plog/classes/plog.php';
class ProdSubTypeDAO extends BaseDAO {
	
	public function __construct () {
		parent::__construct();
//		$this->log = Plog::factory(__FILE__);			
	}
	

	public function queryAll() {
		$sql = "select * from prod_sub_type";
		$result = @mysql_query($sql);
		return $this->toArray($result);
	}
	

	public function queryByType($type) {
		$sql = "select * from prod_sub_type where type=$type ";
		$result = @mysql_query($sql);
		return $this->toArray($result);
	}
}
?>